import service from "@/request/index";
//新增
export function addNews(params:any){
    return service({
        url:"/addNews",
        method:"get",
        params
    })
}

//查询
export function querynews(params:any){
    return service({
        url:"/querynews",
        method:"get",
        params
    })
}

//删除
export function delNews(id:number){
    return service({
        url:`/delNews/${id}`,
        method:"delete"
    })
}

//修改
export function updataNews(params:any){
    return service({
        url:"/updataNews",
        method:"put",
        data: params
    })
}
